<!-- <page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="add()" nz-button nzType="primary">新建</button>
  </ng-template>
</page-header> -->


<nz-card>
  <!-- <lb-pop #pop  [schema]="newSchema" [formData]="formData" [title]="'服务新增'" [(isVisible)]="isVisible" [saveFu]="save" saveSname="FR_fwzcadd" ></lb-pop> -->
  <nz-modal [(nzVisible)]="isVisible" nzTitle="服务新增" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWidth="600">
      <sf  #pop  [schema]="newSchema" [formData]="formData" [button]="null" nzOkText="新建"  autocomplete="off">
      </sf>
    </nz-modal>


  <!-- <lb-pop #changePop  [schema]="changeSchema" [formData]="formData" [title]="'服务更改'" [(isVisible)]="chVisible" [saveFu]="update" saveSname="FR_fwzcupdate" ></lb-pop> -->
  <nz-modal [(nzVisible)]="chVisible" nzTitle="服务更改" (nzOnCancel)="fwuphandleCancel()" (nzOnOk)="fwuphandleOk()" nzWidth="1000">
      <sf  #changePop  [schema]="changeSchema" [formData]="formData" [button]="null" nzOkText="保存"  autocomplete="off">
      </sf>
    </nz-modal>


    <nz-modal  [nzFooter]="modalFooter" [(nzVisible)]="isSqVisible" (nzOnCancel)="fwsqhandleCancel()"  nzTitle="服务授权">
      <nz-checkbox-wrapper (nzOnChange)="log($event)">
        <div nz-row>
          <div *ngFor="let item of fwsqlist"><label nz-checkbox [nzValue]="item.CZE020" [ngModel]="item.CZE028!=0">{{item.CZE021}}</label></div>
        </div>
      </nz-checkbox-wrapper>

      <ng-template #modalFooter>
        <button nz-button nzType="default" (click)="fwsqhandleCancel()">取消</button>
        <button nz-button nzType="primary" (click)="fwsqhandleOk()" >授权</button>
      </ng-template> 
    </nz-modal>



  <sf #sf mode="search" [schema]="searchSchema" (formReset)="st.reload()" [button]="null" autocomplete="off">
    <ng-template sf-template='/btn'>
      <button type="submit" nz-button (click)="query(true)">查询</button>
      <button (click)="add()" nz-button nzType="primary">新建</button>
    </ng-template>
  </sf>
  
  <lb-grid #st  [columns]="columns" [sname]="params.sname" [queryparas]="params.form" >
    <ng-template lb-row="custom" let-item let-index="index" let-column="column">
      <nz-switch [ngModel]="item.CZE032=='1'" nzCheckedChildren="正常" nzUnCheckedChildren="失效" (ngModelChange)="changeFwState(index)" ></nz-switch>
  </ng-template>
  <ng-template lb-row="login" let-item let-index="index" let-column="column">
    <nz-switch [ngModel]="item.CZE038=='1'" nzCheckedChildren="需要" nzUnCheckedChildren="不要" (ngModelChange)="changeLgState(index)" ></nz-switch>
</ng-template>
  </lb-grid>
  <!-- <st #st [data]="dataset"  [columns]="columns" [page]="stpage"  [pi]="stchange.pi"  [ps]="stchange.ps" [total]="stchange.total" (change)="pageChange($event)" >
    <ng-template #selectkuang st-row="custom" let-item let-index="index" let-column="column">
        <nz-switch [ngModel]="item.CZE032=='1'" nzCheckedChildren="正常" nzUnCheckedChildren="失效" (ngModelChange)="changeFwState(index)" ></nz-switch>
    </ng-template>
    <ng-template #selectkuang st-row="login" let-item let-index="index" let-column="column">
      <nz-switch [ngModel]="item.CZE038=='1'" nzCheckedChildren="需要" nzUnCheckedChildren="不要" (ngModelChange)="changeLgState(index)" ></nz-switch>
  </ng-template>
  </st> -->
  
</nz-card>
